import Vue from 'vue'
import Router from 'vue-router'
import Welcome from '@/components/welcome'
import dashboard from '@/components/dashboard'
import goods from '@/components/goods'
import shopCar from '@/components/shopCar'
import userInfo from '@/components/userInfo'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/welcome',
      component: Welcome,
    },
    {
      path: '/',
      name: 'dashboard',
      component: dashboard
    },
    {
      path: '/goods',
      name: 'goods',
      component: goods
    },
    {
      path: '/shopCar',
      name: 'shopCar',
      component: shopCar
    },
    {
      path: '/userInfo',
      name: 'userInfo',
      component: userInfo
    }
     
  ]
})
